<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function wod(c, d) {
            var a = 0;
            for (var b = c; c <= d; b++) {
                a += b;
            }
            console.log(a);

        }
        wod(50, 100);
        wod(1, 100);
    </script>
</head>

<body>

</body>

</html>